
import React from 'react'
import FormPage from '../../components/pdf'
import { PageHeader } from 'antd';
import './index.css'
import { useNavigate } from 'react-router-dom'
import { useAuth } from '../../AuthContext';


export default function Home() {
    const navigate = useNavigate()
    const { logout } = useAuth()


    return (
        <div style={{ width: '80%', margin: '0 auto', padding: 20 }}>
            <PageHeader
                className="site-page-header"
                onBack={() => {
                    logout()
                    navigate('/login')
                }}
                title="退出登录"
            />
            <FormPage />
        </div>
    )
}
